home *** CD-ROM | disk | FTP | other *** search
- Path: prairienet.org!sjmccaug
- From: sjmccaug@prairienet.org (Scott J. McCaughrin)
- Newsgroups: comp.lang.c++
- Subject: Re: who know how to use large array in c++?
- Date: 23 Jan 1996 11:16:19 GMT
- Organization: University of Illinois at Urbana
- Message-ID: <4e2g23$caf@vixen.cso.uiuc.edu>
- References: <4e2555$ro6@flood.weeg.uiowa.edu> <4e0ml0$jt5@mercury.wright.edu>
- Reply-To: sjmccaug@prairienet.org (Scott J. McCaughrin)
- NNTP-Posting-Host: firefly.prairienet.org
-
-
-
- In <4e0ml0$jt5@mercury.wright.edu>, Apichart Intarapanich <aintara> writes:
- >hi
- >anybody know how can i declare array like this
- >
- >float a[1000][1000][1000];
- >
- >i cannot do that. i got segmentation fault statement. who know what should i
- >do?
- >apichart
-
- Apichart,
-
- How much memory do you have on your machine? Have you considered 2 vectors,
- each with 1,000 pointers, to a third vector of floats? The first vector can
- be considered an array of pointers to vectors of pointers, each pointer in
- the vector to a vector of 1,000 floats.
-
- -- Scott McC.
-
-